<html>
<head>
<script src="resources/text-based-repaint.js"></script>
<script>
    function test()
    {
        document.body.offsetTop;
        var target = document.getElementById("target");
        target.style.visibility = "visible";
        document.body.offsetTop;
        
        runRepaintAndPixelTest();
    }

    function repaintTest()
    {
        var target = document.getElementById("target");
        target.style.left = "0";
        target.style.backgroundColor = "green";
    }
</script>
</head>
<body onload="test()">
    <div id="target" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>
</body>
</html>
